<% get_restaurant_sidebar('restaurant') %>
<% get_restaurant_breadcrumb(@navs,@nav_title) %>

<div class="row">
  <div class="col-md-12">
    <div class="white-box">
      <%= link_to("修改店铺信息", "/restaurants/info/edit" , class:"btn btn-info") %>
      <%= link_to("店铺二维码", "/restaurants/info/qrcode" , class:"btn btn-success") %>
      <%= link_to("店铺打印机", "/restaurants/printers" , class:"btn btn-primary") %>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-lg-6">
    <div class="panel panel-default">
     <div class="panel-heading">店铺基本信息</div>
      <div class="panel-wrapper collapse in">
       <div class="panel-body">
         <p>登录账号(如需修改登录账号请联系客服): <span class="label label-info"><%= @restaurant.login %></span></p>
         <p>名称: <span class="label label-info"><%= @restaurant.name %></span></p>
         <p>电话: <span class="label label-info"><%= @restaurant.phone %></span></p>
         <p>地址: <span class="label label-info"><%= @restaurant.address %></span> </p>
         <p>已设置餐桌数: <span class="label label-info"><%= @restaurant.total_tables %></span> </p>
         <p>打印机数: <span class="label label-info"><%= @restaurant.printers.count  %></span> </p>
         <p>店铺简单描述: <%= @restaurant.description %> </p>
       </div>
      </div>
    </div>  
  </div>

  <div class="col-lg-6">
    <div class="panel panel-default">
     <div class="panel-heading">店铺封面图</div>
      <div class="panel-wrapper collapse in">
       <div class="panel-body text-center">
         <%= image_tag @restaurant.attachment.url,class: 'thumbnail',style:'width:50%;margin:auto;' %>
       </div>
      </div>
    </div>  
  </div>

  <div class="col-lg-12">
    <div class="well">
      <h4>店铺公告</h4>
      <p>
        <%= @restaurant.bulletion || "暂无店铺公告" %>
      </p>
    </div>
  </div>
</div>